package com.base.themvx.action

import com.base.themvx.isDebug
import com.blankj.utilcode.util.LogUtils


/**
 * <p>
 * </p>
 *
 * @author Kingbo
 * @date 2025/4/19
 */
interface LogAction {
    companion object {
        private const val TAG = "IMM"
        private val IS_OPEN = isDebug()
    }

    fun logV(tag: String = "", vararg contents: Any) {
        if (!IS_OPEN) return
        LogUtils.vTag("$TAG:$tag", contents)
    }

    fun logD(tag: String = "", vararg contents: Any) {
        if (!IS_OPEN) return
        LogUtils.dTag("$TAG:$tag", contents)
    }

    fun logI(tag: String = "", vararg contents: Any) {
        if (!IS_OPEN) return
        LogUtils.iTag("$TAG:$tag", contents)
    }

    fun logW(tag: String = "", vararg contents: Any) {
        if (!IS_OPEN) return
        LogUtils.wTag("$TAG:$tag", contents)
    }

    fun logE(tag: String = "", vararg contents: Any) {
        if (!IS_OPEN) return
        LogUtils.eTag("$TAG:$tag", contents)
    }

}